package com.filldream.fastboot.common.stockUtils.cffex.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class StockIndexFutureGroupItem {

    @ApiModelProperty(value = "数据类型 0-全部 1-买 2-卖")
    private Integer datatypeid;

    @ApiModelProperty(value = "列表名称")
    private String listName;

    @ApiModelProperty(value = "数据")
    private List<StockIndexFuture> list;

    public String getListName(){
        if( datatypeid.equals(0) ){
            return "成交量排名";
        }
        return datatypeid.equals(1) ? "买单量排名" : "卖单量排名";
    }

}
